@extends('corporation.layouts.layout')

@section('content')
<div class="col-sm-12">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>实习生列表</h5>
        </div>
        <div class="ibox-content">

            <div class="row">
                 <div class="col-sm-1">
                    <button type="button" class="btn btn-primary" onclick="openModal()" id="searchLogs">添加</button>
                  </div>
                <form method="get" action="/admin/users">
                  <div class="col-sm-3 m-b-xs">
                      <input  placeholder="输入搜索内容"
                              class="form-control" value=""  name="keyword">
                  </div>
                    {{--<div class="col-sm-3 m-b-xs">
                        <input  placeholder="结束日期"
                                class="form-control layer-date" id="end" name="end_date">
                    </div>--}}
                 <div class="col-sm-1 pull-right">
                    <button type="submit" class="btn btn-info" id="searchLogs">搜索</button>
                  </div>
                </form>
            </div>

            <hr >
            <div class="table-responsive">
                <table class="table table-hover dataTable" id="logs">

                    <thead>
                        <tr>
                            <th>姓名</th>
                            <th>岗位</th>
                            <th>院校</th>
                            <th>电话</th>
                            <th>导员</th>
                            <th>导员电话</th>
                            <th>实习项目</th>
                            <th>申请日期</th>
                            <th>实习职位</th>
                            <th>办公地点</th>
                            <th>实习时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <th>张瑞</th>
                            <th>运营实习生</th>
                            <th>山东大学信息工程学院</th>
                            <th>18810332421</th>
                            <th>李四</th>
                            <th>13022341232</th>
                            <th>进行中</th>
                            <th>2017-3-4</th>
                            <th>产品经理实习生</th>
                            <th>阿里巴巴集团杭州滨江园区总部</th>
                            <th>2017-3-4至2018-1-2</th>
                        </tr>
                        <tr>
                            <th>张瑞</th>
                            <th>运营实习生</th>
                            <th>山东大学信息工程学院</th>
                            <th>18810332421</th>
                            <th>李四</th>
                            <th>13022341232</th>
                            <th>进行中</th>
                            <th>2017-3-4</th>
                            <th>产品经理实习生</th>
                            <th>阿里巴巴集团杭州滨江园区总部</th>
                            <th>2017-3-4至2018-1-2</th>
                        </tr>
                        <tr>
                            <th>张瑞</th>
                            <th>运营实习生</th>
                            <th>山东大学信息工程学院</th>
                            <th>18810332421</th>
                            <th>李四</th>
                            <th>13022341232</th>
                            <th>进行中</th>
                            <th>2017-3-4</th>
                            <th>产品经理实习生</th>
                            <th>阿里巴巴集团杭州滨江园区总部</th>
                            <th>2017-3-4至2018-1-2</th>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<div class="modal inmodal in" id="myModal" style="display: none;" aria-hidden="true" style="display: block; padding-left: 6px;">
    <div class="modal-dialog">
        <div class="modal-content animated bounceInRight">
            <div class="modal-header">
                <button type="button" class="close" onclick="closeModal()"><span aria-hidden="true">×</span><span class="sr-only">关闭</span>
                </button>
                <h4 class="modal-title">新增实习生</h4>
            </div><small class="font-bold">
                <div class="modal-body">
                    <div class="form-group"><input type="text" placeholder="请输入邀请码" class="form-control"></div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-danger" onclick="closeModal()">取消</button>
                    <button type="button" class="btn btn-primary">添加</button>
                </div>
            </small></div><small class="font-bold">
        </small></div><small class="font-bold">
    </small>
</div>

@endsection

@section('script')

    <script type="text/javascript">
        // 查看详情
        function openModal(){
            $("#myModal").css("display","block");
        }

        function closeModal(){
            $("#myModal").css("display","none");
        }
    </script>


    <script type="text/javascript">

        // 设置状态栏激活

        $('.click-nav').removeClass('active');
        localStorage.clear();
        $('#nav3').addClass('active');
        localStorage.setItem('nav_st', 3);
    </script>
@endsection
